import { http } from '@/utils/http'
/*用户登录*/
export const postLoginAPI = (data) => {
  return http({
    method: 'POST',
    url: '/tour/tour/user/login',
    data,
    header: {
      isSerialize: true,
    },
  })
}

/*发送验证码*/
export const sendEmailCodeAPI = (data) => {
  return http({
    method: 'POST',
    url: '/tour/tour/user/sendEmailCode',
    data,
    header: {
      isSerialize: true,
    },
  })
}

/*用户注册*/
export const postRegistAPI = (data) => {
  return http({
    method: 'POST',
    url: '/tour/tour/user/userRegistration',
    data,
  })
}

/*修改密码*/
export const changePasswordAPI = (data) => {
  return http({
    method: 'POST',
    url: '/tour/tour/user/changePassword',
    data,
    header: {
      isSerialize: true,
    },
  })
}

/*重置密码*/
export const resetPasswordAPI = (data) => {
  return http({
    method: 'POST',
    url: '/tour/tour/user/resetPassword',
    data,
    header: {
      isSerialize: true,
    },
  })
}
